package ooday05;

public class EnumDemo {
    public static void main(String[] args) {
        /**
        for (Seasons value : Seasons.values()) {
            System.out.println(value);
        }
        //byte short int String 枚举
        switch (Seasons.AUTUMN){
            case AUTUMN:
                System.out.println("秋天");
                break;
            case SPRING:
                System.out.println("春天");
                break;
            case SUMMER:
                System.out.println("夏天");
                break;
            case WINTER:
                System.out.println("冬天");
        }
         */
        for (Seasons value : Seasons.values()) {
            System.out.println();;
            System.out.println(value.getSeasonName()+":"+value.getSeasonDesc());
        }

    }
}
